package com.example;

import javax.microedition.khronos.opengles.GL10;

import com.step.Step;
import com.step.Step.Dimension;
import com.step.graphic.Texture;
import com.step.sprite.Sprite2D;

public class Sprite2DExample extends BaseExample{
	Sprite2D sprite2d;

	@Override
	public void create() {
		sprite2d = new Sprite2D(new Texture("textures/logo.png"));
		Step.dimension = Dimension.d2d;
	}

	@Override
	public void update() {
		GL10 gl = Step.gl;
		gl.glClearColor(1, 1, 1, 1);
		//sprite2d.translate(10, 10);
		sprite2d.setScale(1.5f,1.5f);
		sprite2d.rotate(5);
		sprite2d.draw(gl);
	}	
}
